class Solution {
    public int convertInteger(int A, int B) {
        int tmp = A ^ B;
        int count = 0;
        while(tmp != 0) {
            //注意 按位与运算符的优先级 比 比较运算符低
            if( (tmp & 1) == 1) {
                count++;
            }
            tmp = tmp >>> 1;
        }
        return count;
    }
}